package com.market.mapper;

import com.market.entity.BuyerCashFlow;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName BuyerCashFlowMapper
 * @Description 买家资金流水
 * @Author pq
 * @Date 2022/3/28 15:45
 * @Version 1.0
 */
@Mapper
public interface BuyerCashFlowMapper {
    //增加买家流水
    int addBuyerCashFlow(BuyerCashFlow buyerCashFlow);
    //根据买家id查看所有流水
    List<BuyerCashFlow> queryAllBuyerCashFlow(int buyerId);
    //某个买家所有流水的条数
    int queryTotalBuyerCashFlowByBuyerId(int buyerId);
}
